//退出登录
import React from 'react';

import BaseAction from '../common/BaseAction';
import Constants from '../../common/Constants';
import Functions from '../../common/Functions';

//用户主动退出登录
export default class LoginSendOutAction extends BaseAction {
  constructor() {
    super();

    this.moduleType = Constants.MODULE_TYPE.LOGIN;
    this.name = "LoginSendOutAction";

    this.finishCall = ()=>{}
  }

  call(caller, callback) {
    this.finishCall = callback;
    this._baseCall(caller);
  }

  finish() {
    Functions.loginOutSubmit(this.caller, this.finishCall);
  }
}
